package cn.jiyun.feign;

import cn.jiyun.dao.Topic.TopicDTO;
import cn.jiyun.dao.answer.Answer;
import cn.jiyun.dao.paper.PaperDTO;
import cn.jiyun.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author 王晨
 * Date 2023/8/29
 */
@FeignClient(value = "day09paper")
public interface PaperFeign {
    @RequestMapping("topic/findAll")
    public R findAll(@SpringQueryMap TopicDTO topicDTO);

    @RequestMapping("/topic/addAnswer")
    R addAnswer(@SpringQueryMap Answer answer);
    @RequestMapping("topic/findAnswer")
    public R findAnswer(@RequestParam("id") Integer id);

    @RequestMapping("/paper/findCeyan")
    R findPaper(@SpringQueryMap PaperDTO paperDTO);

    @RequestMapping("/paper/delAnswer")
    R delAnswer(@RequestParam("id") Integer id);

    @RequestMapping("/topic/findScore")
    R findScore();

}
